﻿
using System;
using DotNetNeural.Activation;
namespace DotNetNeural.Perceptron
{
    public class PropagationContext : IPropagationContext
    {
        #region IBackPropagationContext Members

        public float[][] LayersOutputs { get; set; }

        public float[][] LayerRawOutputs { get; set; }

        public int LayersCount
        {
            get
            {
                return Math.Min(LayersOutputs.GetLength(0), LayerRawOutputs.GetLength(0));
            }
        }

        public IActivationFunc ActivationFunction { get; set; }

        #endregion
    }
}
